Optimal. Leaf size=136 \[ \frac {2 (3 A+C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{3 d}+\frac {2 B \sin (c+d x) \sqrt {b \sec (c+d x)}}{d}-\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 C \tan (c+d x) \sqrt {b \sec (c+d x)}}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 136, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {4047, 3768, 3771, 2639, 4046, 2641} \[ \frac {2 (3 A+C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{3 d}+\frac {2 B \sin (c+d x) \sqrt {b \sec (c+d x)}}{d}-\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 C \tan (c+d x) \sqrt {b \sec (c+d x)}}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3768
Rule 3771
Rule 4046
Rule 4047
Rubi steps
\begin {align*} \int \sqrt {b \sec (c+d x)} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {B \int (b \sec (c+d x))^{3/2} \, dx}{b}+\int \sqrt {b \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx\\ &=\frac {2 B \sqrt {b \sec (c+d x)} \sin (c+d x)}{d}+\frac {2 C \sqrt {b \sec (c+d x)} \tan (c+d x)}{3 d}-(b B) \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx+\frac {1}{3} (3 A+C) \int \sqrt {b \sec (c+d x)} \, dx\\ &=\frac {2 B \sqrt {b \sec (c+d x)} \sin (c+d x)}{d}+\frac {2 C \sqrt {b \sec (c+d x)} \tan (c+d x)}{3 d}-\frac {(b B) \int \sqrt {\cos (c+d x)} \, dx}{\sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {1}{3} \left ((3 A+C) \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=-\frac {2 b B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 (3 A+C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{3 d}+\frac {2 B \sqrt {b \sec (c+d x)} \sin (c+d x)}{d}+\frac {2 C \sqrt {b \sec (c+d x)} \tan (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 2.01, size = 249, normalized size = 1.83 \[ \frac {\sqrt {b \sec (c+d x)} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (\frac {4 \cos (c+d x) (3 B \csc (c) \cos (d x) \cos (c+d x)+C \sin (c+d x))}{d}-\frac {i e^{-3 i (c+d x)} \left (1+e^{2 i (c+d x)}\right )^{5/2} \left (\left (-1+e^{2 i c}\right ) (3 A+C) e^{i (c+d x)} \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};-e^{2 i (c+d x)}\right )+3 B \left (-1+e^{2 i c}\right ) \, _2F_1\left (-\frac {1}{4},\frac {1}{2};\frac {3}{4};-e^{2 i (c+d x)}\right )+3 B \sqrt {1+e^{2 i (c+d x)}}\right )}{\left (-1+e^{2 i c}\right ) d}\right )}{3 (A \cos (2 (c+d x))+A+2 B \cos (c+d x)+2 C)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.57, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} \sqrt {b \sec \left (d x + c\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} \sqrt {b \sec \left (d x + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 1.80, size = 647, normalized size = 4.76 \[ \frac {2 \sqrt {\frac {b}{\cos \left (d x +c \right )}}\, \left (-1+\cos \left (d x +c \right )\right )^{2} \left (3 i A \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )-3 i B \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )+3 i B \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )+i C \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )+3 i A \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )-3 i B \cos \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \sin \left (d x +c \right )+3 i B \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \cos \left (d x +c \right )+i C \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )-3 B \left (\cos ^{2}\left (d x +c \right )\right )-C \left (\cos ^{2}\left (d x +c \right )\right )+3 B \cos \left (d x +c \right )+C \right ) \left (1+\cos \left (d x +c \right )\right )^{2}}{3 d \cos \left (d x +c \right ) \sin \left (d x +c \right )^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} \sqrt {b \sec \left (d x + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sqrt {\frac {b}{\cos \left (c+d\,x\right )}}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {b \sec {\left (c + d x \right )}} \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________